@extends('Layout/layout')
@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("person").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('Personnel/Person/index') }}"><p>员工档案</p></a></li>
<li><a href="{{ url('Personnel/Leave/index') }}"><p>请假申请</p></a></li>
<li><a href="{{ url('Personnel/Adjust/index') }}"><p>职位调整申请</p></a></li>
<li><a href="{{ url('Personnel/Leaveoffice/index') }}"><p>离职申请</p></a></li>
@if(session('role') == 1)
<li><a href="{{ url('Personnel/Recruit/index') }}"><p>人员招聘</p></a></li>
<li><a href="{{ url('Personnel/Performance/index') }}"><p>绩效管理</p></a></li>
<li><a href="{{ url('Personnel/Socialinsurance/index') }}"><p>社保</p></a></li>
<li><a href="{{ url('Personnel/Money/index') }}"><p>工资管理</p></a></li>
@endif
<li><a href="{{ url('Personnel/Training/index') }}"><p>员工培训</p></a></li>
</ul>
</div>

<div class="mian_b">
<div class="mian_b1">
<a href="{{ url('Personnel/Leave/add') }}" title="添加">
<p class="mian_b1_a1"></p></a>

<form action="{{ url('Personnel/Leave/index')}}" method="get"> 
<p class="mian_b1_sousuo">
<input name="name" type="text" value="姓名">
</p>
<input type="image" src="/public/images/1.jpg" style="margin:13px;">
</form>


</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg">
<tr>
<td width="3%" class="mian_b_bg_lm"><input name="" type="checkbox" value="">&nbsp;</td>
<td width="5%" class="mian_b_bg_lm"><span></span>请假人</td>
<td width="6%" class="mian_b_bg_lm"><span></span>请假原因</td>
<td width="6%" class="mian_b_bg_lm"><span></span>请假时间</td>
<td width="6%" class="mian_b_bg_lm"><span></span>请假天数</td>
<td width="6%" class="mian_b_bg_lm"><span></span>审批状态</td>
<td width="6%" class="mian_b_bg_lm"><span></span>请假类型</td>
<td colspan="2" class="mian_b_bg_lm"><span></span>操作</td>
</tr>
@foreach($res as $k =>$v)
<tr>
<td><input name="" type="checkbox" value="">&nbsp;</td>
<td>{{$v['PersonName']}}</td>
<td>{{$v['Reason']}}</td>
<td>{{$v['Date']}}</td>
<td>{{$v['LeaveDate']}}</td>
<td> {{str_replace([0,1],[' 未批复','已批复'],$v['State'])}} </td>
<td>{{str_replace([0,1,2,3,4,5,6],[' 病假','公假','婚假','产假','事假','丧假','工伤假'],$v['LeaveKinds'])}}</td>
@if($v['State']==0)
<td width="5%" class="mian_b_icon_01"><a href="{{url('Personnel/Leave/edit',['id'=>$v['LeaveID']]) }}">编辑</a></td>
@else
<td width="5%" >已批复</td>
@endif
</tr>
 @endforeach                                                                                                                           
</table>
<div style="float:left;" id="fenye">
{!! $res->appends($info)->render() !!}
</div>
</div>
</div>
</body>
@endsection
